using System.Data.SqlClient;
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Diagnostics;
using DevExpress.XtraEditors;
using DevExpress.Skins;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars.Ribbon.Gallery;
using DevExpress.Utils.Drawing;
using DevExpress.Utils;
using CustomSecurity;
using Lists;
using ListForms;
using QuanLyQuy;
using QuanLyKho;
using MuaHang;
using BanHang;
using KeToanTongHop;
using ReportGenerators;
using ReportGenerators.BanHang;
using ReportGenerators.MuaHang;
using ReportGenerators.QuanLyKho;
using ReportGenerators.QuanLyQuy;
using ReportGenerators.CongNo;
using ReportGenerators.Thue;
using BanLe;
using BasicForms;
using GeneralLibs;
using ReportGenerators.QuanLyKho.ThongKeChiTietNhapXuatKho;

namespace Portal
{
    public partial class FrmEditThongSoAnChoDeveloper : BasicForms.FrmClose
    {
        public FrmEditThongSoAnChoDeveloper()
        {
            InitializeComponent();
        }

        private void linkLblCauHinhGiaoDienDanhSachChungTu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmCauHinhFormDanhSachChungTu frmCauHinhFormDanhSachChungTu = new FrmCauHinhFormDanhSachChungTu();
            frmCauHinhFormDanhSachChungTu.Show();
        }

        private void linkLblCauHinhGiaoDienChungTu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmCauHinhFormChungTu frmCauHinhFormChungTu = new FrmCauHinhFormChungTu();
            frmCauHinhFormChungTu.Show();
        }

        private void linkLblStoreID_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmSetStoreID frmSetStoreID = new FrmSetStoreID();
            frmSetStoreID.Show();
        }

        private void linkLblNhoGiaTuDongLuu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmCauHinhTuDongLuuChungTu frmTuDongLuuChungTu = new FrmCauHinhTuDongLuuChungTu();
            frmTuDongLuuChungTu.Show();
        }

        private void linkLblCauHinhHanSuDung_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmHanSuDung frm = new FrmHanSuDung();
            frm.ShowDialog();
        }

        private void linkLblCauHinhKhac_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmGeneralSettings frm = new FrmGeneralSettings();
            frm.Show();

        }

        private void linkLblTenDoanhNghiep_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmThongTinCoSoThuoc frm = new FrmThongTinCoSoThuoc();
            frm.Show();
        }

        private void linkLblPhuongPhapTinhGiaTonKho_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmEditCachTinhGiaHangTonKho frm = new FrmEditCachTinhGiaHangTonKho();
            frm.Show();
        }

        private void linkLblNamTaiChinh_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmNamTaiChinh frm = new FrmNamTaiChinh();
            frm.Show();
        }

        private void linkLblCauHinhFunction_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmDanhMucFunction frm = new FrmDanhMucFunction();
            frm.Show();
        }

        private void lblEditNumberOfkhoLimit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmEditKhoLimit frm = new FrmEditKhoLimit();
            frm.ShowDialog();
        }

        private void FrmEditThongSoAnChoDeveloper_Load(object sender, EventArgs e)
        {
            if (User.CurUser.UserName.ToUpper().Equals("SUPADMIN"))
                lblEditNumberOfkhoLimit.Visible = true;
            else
                lblEditNumberOfkhoLimit.Visible = false;
        }
    }
}